import request from '@/utils/request'

export default {
    search(page, size,formInline) {
        return request({
            method: 'get',
            url: process.env.VUE_APP_BASE_API + `/member/list/search/${page}/${size}`,
            data: {
                page,
                size,
                formInline
            }
        })
    },
    //新增会员
    getMember(form) {
        return request({
            method: 'post',
            url: process.env.VUE_APP_BASE_API + '/member',
            data: form//新增会员的数据
        })
    },//编辑会员信息
    putMember(row){
        return request({
            method: 'put',
            url: process.env.VUE_APP_BASE_API + `/member/id/${row.id}`,
            data: row
        })
    },
    //删除会员
    removeMem(id){
        return request({
            method: 'delete',
            url: process.env.VUE_APP_BASE_API + `/member/del/${id}`,
            data: id
        })
    }
}